import notFoundImg from '@/assets/images/net_err.png'
import React, { FC } from 'react'

export const ErrorPage: FC<{ message: string }> = (props) => (
  <div className="w-full bg-white h-screen">
    <img alt="" src={notFoundImg} className="w-72 h-104 m-auto pt-32" />
    <div className="text-2xl relative left-1/2 inline-block transform -translate-x-1/2 ">
      {props.message}
    </div>
    {/* <div class="mt-24 w-48 text-center m-auto h-10 leading-10 rounded-3xl text-white cursor-pointer" onClick={reload} style="background:#E55A48">
  重新加载
</div> */}
  </div>
)

export function renderErrorPage(message: string) {
  return <ErrorPage message={message} />
}

export default renderErrorPage
